﻿@using GameSchool.HtmlHelpers
@model GameSchool.Models.Video
@{
    ViewBag.Title = "Breyta myndbandi";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm(htmlAttributes: new { @class = "form-horizontal", enctype = "multipart/form-data" }))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Breyta myndbandi</legend>
        <div class="control-group">
            @Html.LabelFor(m => m.Name, new { @class = "control-label" }, "Heiti")
            <div class="controls">
                @Html.TextBoxFor(m => m.Name, new { @class = "input-large" })
                @Html.ValidationMessageFor(m => m.Name)
            </div>
        </div>
        <div class="control-group">
            @Html.LabelFor(m => m.Description, new { @class = "control-label" }, "Lýsing")
            <div class="controls">
                @Html.TextAreaFor(m => m.Description, new { @class = "input-xlarge", rows = "8" })
                @Html.ValidationMessageFor(m => m.Description)
            </div>
        </div>
        <div class="control-group">
            @Html.LabelFor(m => m.VideoFilePath, new { @class = "control-label" }, "Myndbandsskrá")
            <div class="controls">
                <input type="file" name="file" id="file" />
            </div>
        </div>
        <div class="form-actions">
            <input type="submit" class="btn btn-primary" value="Uppfæra myndband" />
            <a href="@Url.Action("List", new { id = @Model.CourseID })" class="btn">Til baka í videolista</a>
        </div>
    </fieldset>
}
